//
//  UIView+SPExtension.h
//  EMarket
//
//  Created by 石头 on 2018/5/8.
//  Copyright © 2018年 好日子. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (SPExtension)

@property (nonatomic , assign) CGFloat sp_width;
@property (nonatomic , assign) CGFloat sp_height;
@property (nonatomic , assign) CGSize  sp_size;
@property (nonatomic , assign) CGFloat sp_x;
@property (nonatomic , assign) CGFloat sp_y;
@property (nonatomic , assign) CGPoint sp_origin;
@property (nonatomic , assign) CGFloat sp_centerX;
@property (nonatomic , assign) CGFloat sp_centerY;
@property (nonatomic , assign) CGFloat sp_right;
@property (nonatomic , assign) CGFloat sp_bottom;

- (BOOL)intersectWithView:(UIView *)view;

+ (instancetype)sp_viewFromXib;
- (BOOL)isShowingOnKeyWindow;

@end
